package cn.gson.boot.model.service;

import cn.gson.boot.model.dao.ContactsDao;
import cn.gson.boot.model.dao.KehuDao;
import cn.gson.boot.model.mapper.KehuMapper;
import cn.gson.boot.model.mapper.LogingMapper;
import cn.gson.boot.model.pojos.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.sql.Timestamp;
import java.util.*;

@Service
@Transactional(rollbackFor = Exception.class)
public class LoginService {
    @Autowired
    LogingMapper logingMapper;

    public User logingPD(String empName,String empPwd){
        return logingMapper.logingPD(empName,empPwd);
    }


    //测试测试
    public List<UserLogin> ceshiCeShi(String empName){
        return logingMapper.ceshiCeShi(empName);
    }
}
